package com.yingjia.yingjiauniversity.retrofit.preference;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by 张智轶 on 2016/10/13.
 */
public class Preference {
    public static final String BASE_URL = "baseUrl";

    //NONE,
    //BASIC,
    //HEADERS,
    //BODY
    public static final String LOG_LEVEL = "logLevel";

    /**
     * store all http preferences
     */
    static Map<String, String> values = new HashMap<String, String>();


    public static void putValue(String key, String value) {
        synchronized (Preference.class) {
            values.put(key, value);
        }
    }

    public static String getValue(String key) {
        synchronized (Preference.class) {
            return values.get(key);
        }
    }
}
